﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SystemUserEdit.aspx.cs" Inherits="VSM.SystemUserEdit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">

    </script>
    <div>
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <h2>
                    &nbsp;System User</h2>
                <div style="margin-left: 5px; width: 99%;">
                    <hr />
                    <table border="0" width="100%" style="background-color: #D1D4D8;">
                        <tr>
                            <td class="FormLineItem" style="width: 150px">
                                User Code:
                            </td>
                            <td class="FormLineItem" valign="middle" style="width: 200px">
                                <asp:TextBox ID="txtUserCode" runat="server" Text="" MaxLength="20"></asp:TextBox>
                            </td>
                            <td class="FormLineItem" style="width: 110px">
                                Active:
                            </td>
                            <td class="FormLineItem">
                                <asp:CheckBox ID="chkActive" runat="server" Checked="True" />
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItemAlt" valign="top">
                                User Name:
                            </td>
                            <td class="FormLineItemAlt" valign="top">
                                <asp:TextBox ID="txtUserName" runat="server" Width="98%" MaxLength="80"></asp:TextBox>
                            </td>
                            <td class="FormLineItemAlt" valign="top">
                                Is Admin:
                            </td>
                            <td class="FormLineItemAlt">
                                <asp:CheckBox ID="chkIsAdmin" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItem" valign="top">
                                Password:
                            </td>
                            <td class="FormLineItem" valign="top">
                                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="150px" 
                                    MaxLength="20"></asp:TextBox>
                            </td>
                            <td class="FormLineItem" valign="top">
                                &nbsp;
                            </td>
                            <td class="FormLineItem">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItemAlt" valign="top">
                                E-mail:
                            </td>
                            <td class="FormLineItemAlt" valign="top">
                                <asp:TextBox ID="txtEmail" runat="server" Width="98%" MaxLength="30"></asp:TextBox>
                            </td>
                            <td class="FormLineItemAlt" valign="top">
                                &nbsp;
                            </td>
                            <td class="FormLineItemAlt">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItem">
                                Dealer:
                            </td>
                            <td class="FormLineItem" colspan="3">
                                <asp:DropDownList ID="ddl_Dealer" Width="100%" runat="server" AutoPostBack="True">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItemAlt" valign="top">
                                Remark:
                            </td>
                            <td class="FormLineItemAlt" colspan="2" valign="top">
                                <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Height="45px" 
                                    Width="100%" MaxLength="500"></asp:TextBox>
                            </td>
                            <td class="FormLineItemAlt">
                            </td>
                        </tr>
                        <tr>
                            <td class="FormLineItem" colspan="2">
                                <asp:Panel ID="pnlBelongGroup" Height="250px" runat="server">
                                    Belong Group:<br />
                                    <asp:ListBox ID="lstBelongGroup" Height="95%" Width="100%" runat="server"></asp:ListBox>
                                    <br />
                                </asp:Panel>
                            </td>
                            <td class="FormLineItem" align="center" valign="middle">
                                <asp:Button ID="btnAdd" runat="server" Text="&lt; Add" Width="70px" OnClick="btnAdd_Click" />
                                <br />
                                <br />
                                <br />
                                <asp:Button ID="btnRemove" runat="server" Text="Remove &gt;" Width="70px" OnClick="btnRemove_Click" />
                            </td>
                            <td class="FormLineItem">
                                <asp:Panel ID="pnlAvailableGroup" Height="250px" runat="server">
                                    Available Group:<br />
                                    <asp:ListBox ID="lstAvailableGroup" Height="95%" Width="100%" runat="server"></asp:ListBox>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                    <hr />
                </div>
                <table width="100%" border="0">
                    <tr>
                        <td>
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 220px;">
                                        <asp:Button ID="btnUpdate" runat="server" Text="Add" OnClick="btnUpdate_Click" Style="background-image: url('/Images/bgButton.png');
                                            background-repeat: no-repeat; color: White;" BorderStyle="Solid" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblError" runat="server" Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
